'''
  
'''

from selenium import webdriver
import time
from selenium.webdriver.support.ui import Select

driver_path = r"D:\chromedriver\chromedriver.exe"

driver = webdriver.Chrome(executable_path=driver_path)

driver.get('https://www.baidu.com/')

inputTag = driver.find_element_by_id('kw')
# input框输入
inputTag.send_keys('python')
time.sleep(3)
# 清除input内容
inputTag.clear()

# 操作checkbox
checkBoxEle = driver.find_element_by_name('remember')
checkBoxEle.click()

# 操作select下拉框
selectBtn = Select(driver.find_element_by_name('jumpMenu'))
selectBtn.select_by_index(1)